package cn.bgs.mapper;

import cn.bgs.pojo.Building;
import cn.bgs.pojo.CellIntermediate;
import cn.bgs.pojo.Portal;
import cn.bgs.pojo.UserVo;
import com.github.pagehelper.PageInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.PostMapping;

import java.util.List;

@Mapper
public interface CellMapper {
    void add(@Param("communityId") String communityId, @Param("buildingId") Integer buildingId);

    void adds(@Param("communityId")String communityId,@Param("buildingId") String buildingId, @Param("portalId") Integer portalId);


    List<CellIntermediate> findcell(@Param("communityId") String  communityId,@Param("state") String state, @Param("identity") String identity);

    void del(Integer id);

    List<CellIntermediate> load(Integer  id);

    void adduser(UserVo forms);

    void addcell(@Param("userId") Integer userId, @Param("middleId") String middleId);

    void updatestate(CellIntermediate forms);
}
